use crate::{
    rabin_chunk_data,
    fastcdc_chunk_data
};

pub fn rabin_chunking(data:&[u8]) -> usize {
    unsafe { rabin_chunk_data(&data[0] as *const libc::c_uchar,data.len().try_into().unwrap()).try_into().unwrap() }
}

pub fn fastcdc_chunking(data:&[u8]) -> usize {
    unsafe { fastcdc_chunk_data(&data[0] as *const libc::c_uchar,data.len().try_into().unwrap()).try_into().unwrap() }
}